package azkaban.webapp.servlet;

import azkaban.server.session.Session;
import azkaban.webapp.plugin.ConfigurationManager;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class NezhaServlet extends LoginAbstractAzkabanServlet {
    private static final long serialVersionUID = 1L;
    private  static final String NEZHA = ConfigurationManager.getProperty("external.nezha");
    @Override
    protected void handleGet(HttpServletRequest req, HttpServletResponse resp, Session session) throws ServletException, IOException {
        resp.sendRedirect(this.NEZHA);
    }

    @Override
    protected void handlePost(HttpServletRequest req, HttpServletResponse resp, Session session) throws ServletException, IOException {
        resp.sendRedirect(this.NEZHA);
    }
}
